Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions tests/nogensc.test/runit
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ $CDB2SQL_EXE $CDB2_OPTIONS $DBNAME default "create table t1(a int)"

g=$($CDB2SQL_EXE --tabs $CDB2_OPTIONS $DBNAME default "select generation from comdb2_transaction_logs where rectype=2015 or rectype=2150")

if [[ "$DBNAME" == *"usegen"* ]]; then
if [[ "$g" == "NULL" ]]; then
echo "Committed-gen database should have non-NULL for generation"
exit 1
fi
else
if [[ "$g" != "NULL" ]]; then
echo "No-gen database should have NULL for generation in regop_rowlocks record"
exit 1
fi
# We will always emit commit-gen records
if [[ "$g" == "NULL" ]]; then
echo "Committed-gen database should have non-NULL for generation"
exit 1
fi

echo "Success"
1 change: 0 additions & 1 deletion tests/nogensc.test/usegen.testopts

This file was deleted.