pike.git / src / modules / Gdbm / testsuite.in

version» Context lines:

pike.git/src/modules/Gdbm/testsuite.in:1:   // gdbm - cond( [[ master()->programs["/precompiled/gdbm"] ]], + cond( [[ master()->resolv("Gdbm") ]],   [[ -  define([[GDBM]],[[ (program)"/precompiled/gdbm" ]]) +  define([[GDBM]],[[ Gdbm.gdbm ]])    test_true(programp(GDBM))    test_do(destruct(clone(GDBM)))       define([[GDBMTESTS]],    [[    test_do(rm("test.gdbm")) -  test_do(add_efun("GDBMBASE",clone(GDBM,"test.gdbm"))) +  test_do(add_constant("GDBMBASE",clone(GDBM,"test.gdbm")))    test_true(file_stat("test.gdbm"))       GDBMNULLTEST    test_true(GDBMBASE->store("foo","bar"))    GDBMNULLTEST    test_equal(GDBMBASE->fetch("foo"),"bar")    test_do([[int e; for(e=0;e<100;e++) GDBMBASE->store("x"+e,"y"+e)]])    GDBMNULLTEST    test_any(int e; for(e=0;e<100;e++) if(GDBMBASE->fetch("x"+e)!="y"+e) return e; return -1,-1)    GDBMNULLTEST