feat(server): save economy hardening and CH5 continuation work
This commit is contained in:
@@ -49,14 +49,14 @@ int main() {
|
||||
assert(!PortItemExtraRead("00",decoded));
|
||||
hex[137]='g';assert(!PortItemExtraRead(hex.c_str(),decoded));
|
||||
assert(!std::memcmp(&zero,&decoded,sizeof(zero)));
|
||||
hex=std::string(138,'f');assert(PortItemExtraRead(hex.c_str(),decoded));
|
||||
hex=std::string(138,'f');assert(!PortItemExtraRead(hex.c_str(),decoded));
|
||||
assert(decoded.name[24]==0);
|
||||
}
|
||||
'''
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
cpp, exe = Path(tmp)/'extra.cpp', Path(tmp)/'extra'
|
||||
cpp.write_text(source)
|
||||
subprocess.run(['c++', '-std=c++17', '-I'+str(ROOT), str(cpp), '-o', str(exe)], check=True)
|
||||
subprocess.run(['c++', '-std=c++17', '-Werror=implicit-int-conversion', '-I'+str(ROOT), str(cpp), '-o', str(exe)], check=True)
|
||||
subprocess.run([str(exe)], check=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user