memset(formatted_value_, 0, sizeof(formatted_value_));
memset(space_, 0, sizeof(space_));
memset(user_context_, 0, sizeof(user_context_));
+
+ static_assert(8 < OPTION_COLUMNS, "8 < OPTION_COLUMNS");
}
/// @brief Returns identifier of the currently processed option.
columns_[DHCP4_BOOT_FILE_NAME_COL] = "dhcp4_boot_file_name";
columns_[AUTH_KEY_COL] = "auth_key";
- static_assert(12 < HOST_COLUMNS, "12 < HOST_COLUMNS");
+ static_assert(13 < HOST_COLUMNS, "13 < HOST_COLUMNS");
};
/// @brief Virtual destructor.
columns[cancelled_index_] = "cancelled";
columns[user_context_index_] = "user_context";
columns[client_classes_index_] = "client_classes";
+
+ static_assert(8 < OPTION_COLUMNS, "8 < OPTION_COLUMNS");
}
private:
/// @brief Constructor
PgSqlLegLExchange() : address_(""), log_("") {
- static_assert(0 < LOG_COLUMNS, "0 < LOG_COLUMNS");
-
// Set the column names (for error messages)
columns_.push_back("log");
+ static_assert(1 < LOG_COLUMNS, "1 < LOG_COLUMNS");
}
/// @brief Destructor
#!/bin/sh
+set -eu
+
# run unittests
# ./meson.sh test -C build --setup valgrind_gen_suppressions
for i in $(find build | grep "valgrind-supp-" | grep -v "txt\.supp")
# remove useless data
xmlstarlet sel -t -v "/valgrindoutput/error/suppression/rawtext" "$i" | grep "\S" | sed 's/</</g; s/>/>/g; s/&/\&/g; s/"/"/g; s/'/'"'"'/g' > "$i-txt.supp"
# extract the binary path and name
- found_in_path=$(grep "<exe>.*</exe>" "$i" | grep -v "valgrind" | xmlstarlet sel -t -v "/exe" | sed "s|.*src|src|")
+ found_in_path=$(xmlstarlet sel -t -v "/valgrindoutput/args/argv/exe" "$i" | sed "s|.*src|src|")
# insert a comment with the binary path and name
sed -i "s|<insert_a_suppression_name_here>|<insert_a_suppression_name_here>\n # detected in $found_in_path|g" "$i-txt.supp"
# split the file