Opened 15 years ago

Closed 15 years ago

#999 closed Patches (fixed)

prg_exec_fail3 fails on release variant

Reported by: troy d. straszheim Owned by: Gennadiy Rozental
Milestone: Component: test
Version: Boost 1.34.0 Severity: Problem
Keywords: Cc:

Description

prg_exec_fail3 depends on assert() for failure... doesn't work when -DNDEBUG is on:

int cpp_main( int, char *[] ) note the name {

int div = 0;

assert( div != 0 );

#if NDEBUG

printf("assert check turned off under NDEBUG\n"); return 1;

#endif

return 0;

}

Change History (2)

comment:1 by Dave Abrahams, 15 years ago

Owner: set to Gennadiy Rozental

comment:2 by Gennadiy Rozental, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.