Changeset 888


Ignore:
Timestamp:
Jun 19, 2015, 4:14:10 PM (10 years ago)
Author:
Silvan Scherrer
Message:

Samba server: add exceptq to tdbtorture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/tdb/tools/tdbtorture.c

    r878 r888  
    22   writers - that stresses the locking code.
    33*/
     4
     5#ifdef __OS2__
     6#define INCL_DOSEXCEPTIONS
     7#define INCL_DOSPROCESS
     8#define INCL_DOSMODULEMGR
     9#define INCL_LOADEXCEPTQ
     10#define INCL_FORKEXCEPTQ
     11#include <os2.h>
     12#include <exceptq.h>
     13#endif
    414
    515#include "replace.h"
     
    235245static int run_child(const char *filename, int i, int seed, unsigned num_loops, unsigned start)
    236246{
     247#ifdef __OS2__
     248        EXCEPTIONREGISTRATIONRECORD ExRegRec;
     249        LoadExceptq(&ExRegRec, NULL, NULL);
     250#endif
    237251        db = tdb_open_ex(filename, hash_size, TDB_DEFAULT,
    238252                         O_RDWR | O_CREAT, 0600, &log_ctx, NULL);
     
    249263
    250264        for (;loopnum<num_loops && error_count == 0;loopnum++) {
    251                 printf("loop %i\n", loopnum);
    252265                addrec_db();
    253266        }
     
    273286        tdb_close(db);
    274287
     288#ifdef __OS2__
     289        UninstallExceptq(&ExRegRec);
     290#endif
    275291        return (error_count < 100 ? error_count : 100);
    276292}
     
    307323
    308324        log_ctx.log_fn = tdb_log;
     325#ifdef __OS2__
     326        EXCEPTIONREGISTRATIONRECORD ExRegRec;
     327        LoadExceptq(&ExRegRec, NULL, NULL);
     328#endif
    309329
    310330        while ((c = getopt(argc, argv, "n:l:s:H:thk")) != -1) {
     
    455475
    456476        free(test_tdb);
     477#ifdef __OS2__
     478        UninstallExceptq(&ExRegRec);
     479#endif
    457480        return error_count;
    458481}
Note: See TracChangeset for help on using the changeset viewer.