Now dbGetString() works before iocInit, fix asTest to match
Previously dbGetString() of a link field would return an empty string until iocInit was run. I fixed that earlier today, so asTest started failing because it was checking for the old behavior.
This commit is contained in:
@@ -109,11 +109,7 @@ static void hookPass0(initHookState state)
|
||||
else
|
||||
testFail("Wrong link type: %d", (int)prec->out.type);
|
||||
|
||||
/* note that dbGetString() reads an empty string before links are initialized
|
||||
* should probably be considered a bug, but has been the case for so long
|
||||
* we call it a 'feature'.
|
||||
*/
|
||||
checkGetString(&entry, "");
|
||||
checkGetString(&entry, "rec0.DISV");
|
||||
|
||||
testOk1(dbPutString(&entry, "rec0.SEVR")==0);
|
||||
} else{
|
||||
|
||||
Reference in New Issue
Block a user