I need to test my web app in a scenario where there’s no disk space remaining, i.e. I cannot write any more files. But I don’t want to fill my hard drive with junk just to make
Have you tried mount with -f -r ? It's not really low disk space, but it should throw an error from the same level.