| 71 | }; |
| 72 | |
| 73 | int main( void ) |
| 74 | { |
| 75 | // -------------------------------------------------------------------------- |
| 76 | // -- Test if writing to disk works properly from within a catch block. |
| 77 | // -------------------------------------------------------------------------- |
| 78 | try { |
| 79 | throw "hello"; |
| 80 | } |
| 81 | catch ( ... ) { |
| 82 | TmpFile tmpF; |
| 83 | DBInterface interf( tmpF.fname ); |
| 84 | interf.LogRequest( "test", "127.0.0.1", "hello world" ); |
| 85 | if ( !interf.TestData() ) { |
| 86 | exit( EXIT_FAILURE ); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | exit( EXIT_SUCCESS ); |
| 91 | } |
nothing calls this directly
no test coverage detected