Skip to content

Commit 3f3249f

Browse files
Add test for #12468 (#8978)
1 parent e8a1b2c commit 3f3249f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎test/cfg/qt.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ void assertWithSideEffect_QDir_exists(const char *path) { // #14720
8383
(void)dir;
8484
}
8585

86+
void assertWithSideEffect_QDir_mkdir(const char *path) { // #12468
87+
QDir dir;
88+
// cppcheck-suppress [assertWithSideEffect, checkLibraryNoReturn] // TODO: #8329
89+
Q_ASSERT(dir.mkdir(path));
90+
}
91+
8692
void unusedVariable_QTransform()
8793
{
8894
// cppcheck-suppress unusedVariable

0 commit comments

Comments
 (0)