Thread: Boundary condition

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    38

    Boundary condition

    Hello,

    I have an application running in embedded system, developed in C. We are using small memory model.

    We are hardly allocating memory using DMA( i.e using malloc).

    I have been told to do boundary condition testing. Can anybody please explain me, what does that mean in plain Engish?

    Thanks,
    Juganoo

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Given a bounrdy (a start and a finish) make sure that a given value falls within that range.
    Code:
    int array[10];
    int too_low = -1, too_high = 10;
    int error = 0xDEAD;
    
    array[too_low] = error;
    array[too_high] = error;
    Vola. An example of going outside the given boundries.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. condition variable on read/write locks
    By ShwangShwing in forum C Programming
    Replies: 3
    Last Post: 04-29-2009, 09:32 AM
  2. Condition variables
    By sethjackson in forum Windows Programming
    Replies: 16
    Last Post: 03-19-2008, 11:42 AM
  3. SDL Condition variables.
    By antex in forum Game Programming
    Replies: 3
    Last Post: 11-11-2005, 07:11 AM
  4. Race condition
    By Roaring_Tiger in forum C Programming
    Replies: 5
    Last Post: 10-24-2004, 09:42 PM
  5. Boundary condition
    By Roaring_Tiger in forum C Programming
    Replies: 5
    Last Post: 02-05-2003, 04:43 PM